c with classes การใช้
ประโยค
- During C + +'s development period, the language had been referred to as " new C " and " C with Classes " before acquiring its final name.
- Initially, Stroustrup's " C with Classes " added features to the C compiler, Cpre, including classes, derived classes, strong typing, inlining and default arguments.
- For example, the C family of languages had support for objects and classes in C + + ( originally C with Classes, 1980 ) and Objective-C ( 1983 ), only supporting modules 30 years or more later.
- In 1983, " C with Classes " was renamed to " C + + " ( " + + " being the increment operator in C ), adding new features that included virtual functions, function name and operator overloading, references, constants, type-safe free-store memory allocation ( new / delete ), improved type checking, and BCPL style single-line comments with two forward slashes ( / / ).